package com.sysd.bean.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.sysd.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.util.List;

/**
 * <p>
 *
 * </p>
 *
 * @author bsh
 * @since 2025-06-03
 */
@Getter
@Setter
@TableName("sysd_user")
@ApiModel(value = "User对象", description = "")
@AllArgsConstructor
@NoArgsConstructor
public class User extends BaseEntity {
    private static final long serialVersionUID = 3876807858019687285L;
    @ApiModelProperty("用户id")
    @TableId("user_id")
    private Integer userId;

    @ApiModelProperty("昵称")
    @TableField("nick_name")
    private String nickName;

    @ApiModelProperty("个签")
    @TableField("autograph")
    private String autograph;

    @ApiModelProperty("性别（-1未知0女1男）")
    @TableField("sex")
    private Integer sex;

    @ApiModelProperty("生日")
    @TableField("birthday")
    private String birthday;

    @ApiModelProperty("头像")
    @TableField("head_img")
    private String headImg;

    @ApiModelProperty("学校")
    @TableField("school")
    private String school;

    @ApiModelProperty("地区")
    @TableField("area")
    private String area;

    @ApiModelProperty("手机号码")
    @TableField("phone")
    private String phone;

    @ApiModelProperty("标签名")
    @TableField("label_name")
    private List<String> labelName;

    @ApiModelProperty("关注")
    @TableField("concern")
    private Integer concern;

    @ApiModelProperty("粉丝")
    @TableField("fans")
    private Integer fans;

    public User(String phone){
            this.phone = phone;
    }

}
